import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';

///子分类商品页提供者
class SubCategoryGoodsPageProvider with ChangeNotifier {
  ///刷新控制器
  EasyRefreshController refreshController = EasyRefreshController();

  ///大分类id
  String categoryId = "";

  ///子分类id
  String categorySubId = "";

  ///设置大分类id
  void setCategoryId(String categoryId) {
    this.categoryId = categoryId;
    notifyListeners();
  }

  ///设置子分类id
  void setCategorySubId(String categorySubId) {
    this.categorySubId = categorySubId;
    notifyListeners();
  }

  ///设置大分类和子分类id
  void setCategoryIdAndCategorySubId(String categoryId, String categorySubId) {
    this.categoryId = categoryId;
    this.categorySubId = categorySubId;
    notifyListeners();
  }
}
